package com.hong610.service;

import com.hong610.quartz.entity.JobClassInfo;
import com.hong610.quartz.entity.JobInfo;

import java.util.List;

/**
 * Created by Hong on 2017/2/9.
 */
public interface QuartzService {

    /**获取工作类路径**/
    List<JobClassInfo> getQuartzJobClass() throws Exception;

    /**获取全部任务**/
    List<JobInfo> getJobAll() throws Exception;

    /**重启**/
    boolean restart(String triggerName, String triggerGroup);

    /**暂停**/
    boolean pause(String triggerName, String triggerGroup);

    /**删除**/
    boolean remove(String triggerName, String triggerGroup);

    /**查询单条数据**/
    JobInfo findOne(String triggerName, String triggerGroup);

    /**修改Quartz任务**/
    boolean edit(JobInfo jobInfo);
}
